﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.SubjectInfo>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    班别
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%" height="10" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="10" background="<%=ResolveUrl("~/Content/admin/images/m_b_line1.gif") %>"
                bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td width="53%">
                <table width="100%">
                    <tr>
                        <td width="25">
                            <div align="center">
                                <img src="<%=ResolveUrl("~/Content/admin/images/title_dot1.gif") %>" width="9" height="20" /></div>
                        </td>
                        <td width="137" class="14">
                            <span class="style1">
                                <%=Model.Name %>班别管理</span>
                        </td>
                        <td width="420" >
                            <div align="center">
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="47%" align="right">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="style2">
                    <tr>
                        <td width="5%" height="12">
                            &nbsp;
                        </td>
                        <td width="5%">
                            &nbsp;
                        </td>
                        <td width="13%">
                            &nbsp;
                        </td>
                        <td width="71%">
                            <div align="center" class="style2">
                                <div align="right">
                                    当前位置： <span class="12clor06">
                                        <%=Model.Name %>班别管理</span></div>
                            </div>
                        </td>
                        <td width="6%">
                            <div align="center">
                            </div>
                            <div align="center">
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="100%" height="3" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="3" background="<%=ResolveUrl("~/Content/admin/images/top1.gif") %>">
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <tr class="box03">
            <td height="28" colspan="4" align="center">
                <div align="right">
                </div>
                <div align="center">
                    <input type="button" id="addClass" value="新增">
                    &nbsp;
                    <%=Html.ActionButton("返回", "SubjectList", new {id=Model.DepartId })%>
                </div>
            </td>
        </tr>
    </table>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <div id="listDiv">
        <% Html.RenderAction("ClassListUc"); %>
    </div>
    <div id="editDiv" title="编辑班别">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#editDiv").dialog({
                autoOpen: false,
                height: 210,
                width: 400,
                modal: true,
                /* buttons: {
                "关闭": function () {
                $(this).dialog("close");
                }
                },*/
                close: function () {
                    // allFields.val("").removeClass("ui-state-error");
                    window.location.reload();
                }
            });



            $("#addClass")
			.click(function () {
			    $("#editDiv").html("loading...");
			    $("#editDiv").load(appRoot + 'Admin/ClassEditUc/?cid=' + '<%=Model.Id %>&rd='+rdTime());
			    $("#editDiv").dialog("open");
			});
        });
        var editClickA = function (id) {
            $("#editDiv").html("loading...");
            $("#editDiv").load(appRoot + 'Admin/ClassEditUc/' + id + '?cid=' + '<%=Model.Id %>&rd=' + rdTime());
            $("#editDiv").dialog("open");
        };
    </script>
</asp:Content>
